import axios from "@/libs/api.request";

/**
 * 访客API
 *
 * @Date 2021/3/11 13:21
 * @author 周世焕
 */

/**
 * 获取当前在线访客列表
 * @returns {AxiosPromise}
 */
export function getCurrentVisitors() {
    return  axios.request({
        url: '/v1/service/visitor/online-list',
        method: 'get'
    })
}


/**
 * 获取访客列表
 * @returns {AxiosPromise}
 */
export function getVisitors() {
    return  axios.request({
        url: '/v1/service/visitor/list',
        method: 'get'
    })
}
